package org.springblade.app.wrapper;

import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.app.entity.AppUserEntity;
import org.springblade.app.vo.AppUserVO;

/**
 * 应用成员表 包装类,返回视图层所需的字段
 *
 * @author Chill
 */
public class AppUserWrapper extends BaseEntityWrapper<AppUserEntity, AppUserVO>  {

	public static AppUserWrapper build() {
		return new AppUserWrapper();
 	}

	@Override
	public AppUserVO entityVO(AppUserEntity app_user) {
		AppUserVO app_userVO = BeanUtil.copy(app_user, AppUserVO.class);

		//User createUser = UserCache.getUser(app_user.getCreateUser());
		//User updateUser = UserCache.getUser(app_user.getUpdateUser());
		//app_userVO.setCreateUserName(createUser.getName());
		//app_userVO.setUpdateUserName(updateUser.getName());

		return app_userVO;
	}

}
